/*
 * @Author: wuchao66_Git 2803670835@qq.com
 * @Date: 2023-10-30 12:16:17
 * @LastEditors: wuchao66_Git 2803670835@qq.com
 * @LastEditTime: 2023-10-31 21:38:00
 * @FilePath: \t162vue\src\api\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '../utils/request'

export function findEntryByPage(currentPage,pageSize,title){
        return request({
            url: '/entry/findEntryByPage',
            method: 'get',
            params:{
                currentPage,pageSize,title
            }
        });
}
//查询
export function findEntryByPage161(currentPage,pageSize, title,
    categoryId)
    {
            return new request({
                url:'entry/findEntryByPage162',
                method:'get',
                params:{
                    currentPage,pageSize, title,
                    categoryId 
                }
            });
    }
    //删除
    export function deleteEntryById(id)
        {
                return new request({
                    url:'entry/deleteEntryById',
                    method:'get',
                    params:{
                        id
                    }
                });
        } 
    export function addorUpdateEntry(entry){
        return new request({
            url:'entry/addorUpdateEntry',
            method:'post',
            data:entry
        });
    }

    // public R findEntryByPage161( int  id){
    //     return R.ok().data("isdelete", entryService.removeById(id));
    // }   
